home *** CD-ROM | disk | FTP | other *** search
- Path: detroit.freenet.org!ab411
- From: ab411@detroit.freenet.org (David R. Conrad)
- Newsgroups: comp.lang.c
- Subject: Re: [Q]Is there any API that move a directory to another (drive 's) directory ?
- Date: 9 Mar 1996 15:08:50 GMT
- Organization: Greater Detroit Free-Net, Detroit, MI
- Message-ID: <4hs6u2$5d8@detroit.freenet.org>
- References: <Pine.A32.3.91.960221224211.44553F-100000@red.weeg.uiowa.edu> <312BCF42.6629@star.lgsw.re.kr>
- Reply-To: ab411@detroit.freenet.org (David R. Conrad)
- NNTP-Posting-Host: detroit.freenet.org
-
-
- In a previous article, robinson@blue.weeg.uiowa.edu (The Amorphous Mass) says:
- >On Thu, 22 Feb 1996, Hyung keun Hong wrote:
- >> For example, I want to implement
- >> function of moving C:\office\aaaa directory to D:\office\bbbb simply.
- >> Is there any API that implements this spec ?
- >...
- > The comp.lang.c answer would be something like
- >
- > system("COPY C:/OFFICE/AAAA/*.* D:/OFFICE/BBBB");
- > system("DEL C:/OFFICE/AAAA/*.*");
- >/* you can use / instead of \\ since system() bypasses COMMAND.COM */
-
- Huh? system() runs COMMAND.COM (well, I hope it runs whatever COMSPEC
- points to). Besides, if it did bypass COMMAND.COM then what you write
- above wouldn't work since COPY and DEL are internal COMMAND.COM commands.
-
- Off topic for comp.lang.c, though.
- --
- David R. Conrad, conrad@detroit.freenet.org PGP key on GDFN Hardware and
- http://detroit.freenet.org/staff/conrad home page Software Committee
- "If you can't say 'fuck', you can't say 'fuck the government'." --Lenny Bruce
- "We had to destroy the Global Electronic Village in order to save it." --Exon
-